package com.tianji.promotion.service;

import com.tianji.common.domain.dto.PageDTO;
import com.tianji.promotion.domain.query.CodeQuery;
import com.tianji.promotion.entity.Coupon;
import com.tianji.promotion.entity.ExchangeCode;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 兑换码 服务类
 * </p>
 *
 * @author xianggu
 * @since 2023-06-03
 */
public interface IExchangeCodeService extends IService<ExchangeCode> {
    /**
     * 兑换码生成
     * @param coupon
     */
    void autoEchangeCode(Coupon coupon);

    /**
     * 查询兑换码接口
     * @param query
     * @return
     */
    PageDTO<ExchangeCode> queryCodeByPage(CodeQuery query);
}
